package com.gqc.test08.jdbc;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestJdbc {
@Test
public void demo() {
	String xmlPathString="com/gqc/test08/jdbc/jdbc.xml";
	ApplicationContext applicationContext =  new ClassPathXmlApplicationContext(xmlPathString);
	UserDao userDao = applicationContext.getBean("userDao",UserDaoImpl.class);
	userDao.add();
	userDao.delete();
	userDao.update();
	System.out.println(userDao.findUser().toString());
}
}
